<?php
use Phalcon\Mvc\Model;

class TextLists extends Model{

    protected $id;
    protected $author_id;
    protected $author_name;
    protected $blog_id;
    protected $text_type;
    protected $title;
    protected $text;
    protected $status;
    protected $create_date;
    protected $update_date;

    public function initialize() {
    }

    public function getSource() {
		return "lb_text_list";
	}


    /**
     * Get the value of Id
     *
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set the value of Id
     *
     * @param mixed id
     *
     * @return self
     */
    public function setId($id)
    {
        $this->id = $id;

        return $this;
    }

    /**
     * Get the value of Text Type
     *
     * @return mixed
     */
    public function getTextType()
    {
        return $this->text_type;
    }

    /**
     * Set the value of Text Type
     *
     * @param mixed text_type
     *
     * @return self
     */
    public function setTextType($text_type)
    {
        $this->text_type = $text_type;

        return $this;
    }

    /**
     * Get the value of Title
     *
     * @return mixed
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set the value of Title
     *
     * @param mixed title
     *
     * @return self
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get the value of Text
     *
     * @return mixed
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Set the value of Text
     *
     * @param mixed text
     *
     * @return self
     */
    public function setText($text)
    {
        $this->text = $text;

        return $this;
    }

    /**
     * Get the value of Create Date
     *
     * @return mixed
     */
    public function getCreateDate()
    {
        return $this->create_date;
    }

    /**
     * Set the value of Create Date
     *
     * @param mixed create_date
     *
     * @return self
     */
    public function setCreateDate($create_date)
    {
        $this->create_date = $create_date;

        return $this;
    }

    /**
     * Get the value of Update Date
     *
     * @return mixed
     */
    public function getUpdateDate()
    {
        return $this->update_date;
    }

    /**
     * Set the value of Update Date
     *
     * @param mixed update_date
     *
     * @return self
     */
    public function setUpdateDate($update_date)
    {
        $this->update_date = $update_date;

        return $this;
    }

    public function convertToArray() {
        return array(
            'id'        =>  (int)$this->id,
            'title'  =>  $this->title,
            'text_type'      =>  $this->text_type,
            'author_id'    => (int)$this->author_id,
            'author_name'    => $this->author_name,
            'blog_id'       => (int)$this->blog_id,
            'status'    => (int)$this->status,
            'create_date'   => $this->create_date,
            'update_date'   => $this->update_date
        );
    }

    /**
     * Get the value of Status
     *
     * @return mixed
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set the value of Status
     *
     * @param mixed status
     *
     * @return self
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }


    /**
     * Get the value of Author Id
     *
     * @return mixed
     */
    public function getAuthorId()
    {
        return $this->author_id;
    }

    /**
     * Set the value of Author Id
     *
     * @param mixed author_id
     *
     * @return self
     */
    public function setAuthorId($author_id)
    {
        $this->author_id = $author_id;

        return $this;
    }

    /**
     * Get the value of Author Name
     *
     * @return mixed
     */
    public function getAuthorName()
    {
        return $this->author_name;
    }

    /**
     * Set the value of Author Name
     *
     * @param mixed author_name
     *
     * @return self
     */
    public function setAuthorName($author_name)
    {
        $this->author_name = $author_name;

        return $this;
    }


    /**
     * Get the value of Blog Id
     *
     * @return mixed
     */
    public function getBlogId()
    {
        return $this->blog_id;
    }

    /**
     * Set the value of Blog Id
     *
     * @param mixed blog_id
     *
     * @return self
     */
    public function setBlogId($blog_id)
    {
        $this->blog_id = $blog_id;

        return $this;
    }

}
